package edu.simis.client;

import com.google.gwt.user.client.ui.Composite;
import com.smartgwt.client.widgets.layout.FlowLayout;
import com.smartgwt.client.widgets.grid.ListGrid;
import com.smartgwt.client.widgets.grid.ListGridField;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.FormItem;
import com.smartgwt.client.widgets.form.fields.TextItem;
import com.smartgwt.client.widgets.Label;
import com.smartgwt.client.widgets.form.fields.CanvasItem;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.form.fields.ButtonItem;

public class adicionar_prorfesor extends Composite {

	public adicionar_prorfesor() {
		
		FlowLayout flowLayout = new FlowLayout();
		flowLayout.setSize("720px", "488px");
		
		FlowLayout flowLayout_1 = new FlowLayout();
		flowLayout_1.setSize("704px", "66px");
		flowLayout.addTile(flowLayout_1);
		
		FlowLayout flowLayout_2 = new FlowLayout();
		flowLayout_2.setSize("706px", "186px");
		
		ListGrid listGrid = new ListGrid();
		listGrid.setSize("695px", "175px");
		ListGridField nombre = new ListGridField("nombre", "Nombres");  
        ListGridField apellido = new ListGridField("apellido", "apellidos");  
        ListGridField correo = new ListGridField("correo", "Correo");
        ListGridField telefono = new ListGridField("telefono", "Telefono"); 
        listGrid.setFields(nombre,apellido,correo,telefono);

		flowLayout_2.addTile(listGrid);
		flowLayout.addTile(flowLayout_2);
		
		FlowLayout flowLayout_3 = new FlowLayout();
		flowLayout_3.setSize("705px", "184px");
		
		DynamicForm dynamicForm = new DynamicForm();
		dynamicForm.setSize("269px", "178px");
		dynamicForm.setFields(new FormItem[] { new TextItem("nombre", "*Nombre"), new TextItem("apellido", "*Apellidos"), new TextItem("correo", "*Correo"), new TextItem("telefono", "Telefono"), new ButtonItem("newButtonItem_5", "Guardar profesor")});
		flowLayout_3.addTile(dynamicForm);
		
		FlowLayout flowLayout_4 = new FlowLayout();
		flowLayout_4.setSize("209px", "176px");
		
		Label lblNewLabel = new Label("Ingrese los nombres del profesor.");
		lblNewLabel.setSize("196px", "22px");
		flowLayout_4.addTile(lblNewLabel);
		
		Label lblNewLabel_1 = new Label("Ingrese los apellidos del profesor.");
		lblNewLabel_1.setSize("198px", "23px");
		flowLayout_4.addTile(lblNewLabel_1);
		
		Label lblNewLabel_2 = new Label("Ingrese el correo personal del profesor.");
		lblNewLabel_2.setSize("197px", "24px");
		flowLayout_4.addTile(lblNewLabel_2);
		
		Label lblNewLabel_3 = new Label("Ingrese el telefono de contacto.");
		lblNewLabel_3.setSize("191px", "22px");
		flowLayout_4.addTile(lblNewLabel_3);
		flowLayout_3.addTile(flowLayout_4);
		flowLayout.addTile(flowLayout_3);
		initWidget(flowLayout);
	}

}
